package com.fjec.market.service;

import com.fjec.market.entity.InfoMarketMessage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 051.市场消息表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-10-22
 */
public interface IInfoMarketMessageService extends IService<InfoMarketMessage> {

    /**
     * 根据code获取市场消息
     *
     * @param code
     * @return
     */
    Map<String, Object> getMessageByCode(Integer code);

    /**
     * 根据code缓存市场消息
     *
     * @param code
     * @return
     */
    Map<String, Object> cacheMessageByCode(Integer code);

    /**
     * 格式化指定code的市场消息
     *
     * @param code
     * @param args
     * @return
     */
    Map<String, Object> formatMessageByCode(Integer code, Object... args);
}
